home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / atof.man < prev    next >
Encoding:
Text File  |  1989-01-21  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ATOF                  C Library Procedures                   ATOF
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      atof, atoi, atol - convert ASCII to numbers
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ddoouubbllee aattooff((nnppttrr))
  13.      cchhaarr **nnppttrr;;
  14.  
  15.      aattooii((nnppttrr))
  16.      cchhaarr **nnppttrr;;
  17.  
  18.      lloonngg aattooll((nnppttrr))
  19.      cchhaarr **nnppttrr;;
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      These functions convert a string pointed to by _n_p_t_r to
  23.      floating, integer, and long integer representation respec-
  24.      tively.  The first unrecognized character ends the string.
  25.  
  26.      _A_t_o_f recognizes an optional string of spaces, then an
  27.      optional sign, then a string of digits optionally containing
  28.      a decimal point, then an optional `e' or `E' followed by an
  29.      optionally signed integer.
  30.  
  31.      _A_t_o_i and _a_t_o_l recognize an optional string of spaces, then
  32.      an optional sign, then a string of digits.
  33.  
  34. SSEEEE AALLSSOO
  35.      scanf(3S)
  36.  
  37. BBUUGGSS
  38.      There are no provisions for overflow.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.